<!DOCTYPE html>
<html lang="en-us" dir="ltr">
    <head><meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'><meta name='description' content='ubuntu/centos 1、查找文件 find / -name ‘filename’ 2、查找目录 find / -name ‘path’ -type d 73、查找内容 find . | xargs grep -ri ‘content’ //find . | xargs grep -ril ‘content’ 只显示文件名称
深度学习环境搭建 conda install pytorch torchvision torchaudio cpuonly -c pytorch &amp;ndash;update-specs 更新依赖安装
conda install tensorflow
安装mysql sudo apt install mysql-server/client/dev
安装 sudo yum install mariadb-server 启动， 重启 sudo systemctl start mariadb sudo systemctl restart mariadb 设置bind-ip vim /etc/my.cnf 在 [mysqld]: 下面加一行 bind-address = 0.'><title>环境搭建相关</title>

<link rel='canonical' href='http://meruro.cn/p/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E7%9B%B8%E5%85%B3/'>

<link rel="stylesheet" href="/scss/style.min.5a8e892f6fa14515e9065eee1f5d2e05302606ec7f11750b2fb95198f9cdcbfd.css"><meta property='og:title' content='环境搭建相关'>
<meta property='og:description' content='ubuntu/centos 1、查找文件 find / -name ‘filename’ 2、查找目录 find / -name ‘path’ -type d 73、查找内容 find . | xargs grep -ri ‘content’ //find . | xargs grep -ril ‘content’ 只显示文件名称
深度学习环境搭建 conda install pytorch torchvision torchaudio cpuonly -c pytorch &amp;ndash;update-specs 更新依赖安装
conda install tensorflow
安装mysql sudo apt install mysql-server/client/dev
安装 sudo yum install mariadb-server 启动， 重启 sudo systemctl start mariadb sudo systemctl restart mariadb 设置bind-ip vim /etc/my.cnf 在 [mysqld]: 下面加一行 bind-address = 0.'>
<meta property='og:url' content='http://meruro.cn/p/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E7%9B%B8%E5%85%B3/'>
<meta property='og:site_name' content='梅鲁梅鲁梅鲁梅~'>
<meta property='og:type' content='article'><meta property='article:section' content='Post' /><meta property='article:published_time' content='2018-01-18T22:00:07&#43;00:00'/><meta property='article:modified_time' content='2018-01-18T22:00:07&#43;00:00'/>
<meta name="twitter:title" content="环境搭建相关">
<meta name="twitter:description" content="ubuntu/centos 1、查找文件 find / -name ‘filename’ 2、查找目录 find / -name ‘path’ -type d 73、查找内容 find . | xargs grep -ri ‘content’ //find . | xargs grep -ril ‘content’ 只显示文件名称
深度学习环境搭建 conda install pytorch torchvision torchaudio cpuonly -c pytorch &amp;ndash;update-specs 更新依赖安装
conda install tensorflow
安装mysql sudo apt install mysql-server/client/dev
安装 sudo yum install mariadb-server 启动， 重启 sudo systemctl start mariadb sudo systemctl restart mariadb 设置bind-ip vim /etc/my.cnf 在 [mysqld]: 下面加一行 bind-address = 0.">
    </head>
    <body class="
    article-page
    ">
    <script>
        (function() {
            const colorSchemeKey = 'StackColorScheme';
            if(!localStorage.getItem(colorSchemeKey)){
                localStorage.setItem(colorSchemeKey, "auto");
            }
        })();
    </script><script>
    (function() {
        const colorSchemeKey = 'StackColorScheme';
        const colorSchemeItem = localStorage.getItem(colorSchemeKey);
        const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;

        if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
            

            document.documentElement.dataset.scheme = 'dark';
        } else {
            document.documentElement.dataset.scheme = 'light';
        }
    })();
</script>
<div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky ">
    <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="Toggle Menu">
        <span class="hamburger-box">
            <span class="hamburger-inner"></span>
        </span>
    </button>

    <header>
        
            
            <figure class="site-avatar">
                <a href="/">
                
                    
                    
                    
                        
                        <img src="/img/ava_hu31add2dceb44736f969f74989490346b_19511_300x0_resize_q75_box.jpg" width="300"
                            height="300" class="site-logo" loading="lazy" alt="Avatar">
                    
                
                </a>
                
                    <span class="emoji">🍥</span>
                
            </figure>
            
        
        
        <div class="site-meta">
            <h1 class="site-name"><a href="/">梅鲁梅鲁梅鲁梅~</a></h1>
            <h2 class="site-description">朝闻道,夕死可矣.</h2>
        </div>
    </header><ol class="social-menu">
            
                <li>
                    <a 
                        href='https://github.com/CaiJimmy/hugo-theme-stack'
                        target="_blank"
                        title="GitHub"
                    >
                        
                        
                            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>



                        
                    </a>
                </li>
            
                <li>
                    <a 
                        href='https://twitter.com'
                        target="_blank"
                        title="Twitter"
                    >
                        
                        
                            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-twitter" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z" />
</svg>



                        
                    </a>
                </li>
            
        </ol><ol class="menu" id="main-menu">
        
        
        

        <li >
            <a href='/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>



                
                <span>Home</span>
            </a>
        </li>
        
        

        <li >
            <a href='/about/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="7" r="4" />
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>



                
                <span>About</span>
            </a>
        </li>
        
        

        <li >
            <a href='/archives/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <rect x="3" y="4" width="18" height="4" rx="2" />
  <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
  <line x1="10" y1="12" x2="14" y2="12" />
</svg>



                
                <span>Archives</span>
            </a>
        </li>
        
        

        <li >
            <a href='/search/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="10" cy="10" r="7" />
  <line x1="21" y1="21" x2="15" y2="15" />
</svg>



                
                <span>Search</span>
            </a>
        </li>
        
        

        <li >
            <a href='/links/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" />
  <path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" />
</svg>



                
                <span>Links</span>
            </a>
        </li>
        

        <div class="menu-bottom-section">
                <li id="i18n-switch">  
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-language" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M4 5h7" />
  <path d="M9 3v2c0 4.418 -2.239 8 -5 8" />
  <path d="M5 9c-.003 2.144 2.952 3.908 6.7 4" />
  <path d="M12 20l4 -9l4 9" />
  <path d="M19.1 18h-6.2" />
</svg>



                    <select name="language" onchange="window.location.href = this.selectedOptions[0].value">
                        
                            <option value="http://meruro.cn/" selected>English</option>
                        
                            <option value="http://meruro.cn/zh-cn/" >中文</option>
                        
                            <option value="http://meruro.cn/ar/" >عربي</option>
                        
                    </select>
                </li>
            
            
            
                <li id="dark-mode-toggle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="8" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="16" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <span>Dark Mode</span>
                </li>
            
        </div>
    </ol>
</aside>
<main class="main full-width">
    <article class="main-article">
    <header class="article-header">

    <div class="article-details">
    

    <div class="article-title-wrapper">
        <h2 class="article-title">
            <a href="/p/%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E7%9B%B8%E5%85%B3/">环境搭建相关</a>
        </h2>
    
        
    </div>

    
    <footer class="article-time">
        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-time" width="56" height="56" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4" />
  <circle cx="18" cy="18" r="4" />
  <path d="M15 3v4" />
  <path d="M7 3v4" />
  <path d="M3 11h16" />
  <path d="M18 16.496v1.504l1 1" />
</svg>
                <time class="article-time--published">Jan 18, 2018</time>
            </div>
        

        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <polyline points="12 7 12 12 15 15" />
</svg>



                <time class="article-time--reading">
                    4 minute read
                </time>
            </div>
        
    </footer>
    

    
</div>
</header>

    <section class="article-content">
    
    
    <h1 id="ubuntucentos">ubuntu/centos</h1>
<p>1、查找文件 
find / -name ‘filename’
2、查找目录
find / -name ‘path’ -type d
73、查找内容
find . | xargs grep -ri ‘content’
//find . | xargs grep -ril ‘content’ 只显示文件名称</p>
<h2 id="深度学习环境搭建">深度学习环境搭建</h2>
<p>conda install pytorch torchvision torchaudio cpuonly -c pytorch
&ndash;update-specs 更新依赖安装</p>
<p>conda install tensorflow</p>
<h2 id="安装mysql">安装mysql</h2>
<p><code>sudo apt install mysql-server/client/dev</code></p>
<ol>
<li>安装
sudo yum install mariadb-server</li>
<li>启动， 重启
sudo systemctl start mariadb
sudo systemctl restart mariadb</li>
<li>设置bind-ip
vim /etc/my.cnf
在 [mysqld]:
下面加一行
bind-address = 0.0.0.0</li>
<li>设置外部ip可以访问
先进入mysql才能运行下面命令:
mysql 直接进入就行
GRANT ALL PRIVILEGES ON <em>.</em> TO &lsquo;root&rsquo;@&rsquo;%&rsquo; IDENTIFIED BY &lsquo;123456&rsquo; WITH GRANT OPTION;
FLUSH PRIVILEGES</li>
<li>设置阿里云的对外端口
视频中有讲解这部分</li>
<li>安装mysqlclient出问题
centos 7：#python2使用python-devel
yum install python3-devel mariadb-devel -y
ubuntu：
sudo apt-get install libmysqlclient-dev
然后：
pip install mysqlclient</li>
</ol>
<h2 id="ubuntu清华源">ubuntu清华源</h2>
<p>Ubuntu 的软件源配置文件是 /etc/apt/sources.list。将系统自带的该文件做个备份，将该文件替换为下面内容，即可使用 TUNA 的软件源镜像。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl">	<span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">security</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">updates</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">proposed</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">backports</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">security</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">updates</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">proposed</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span><span class="line"><span class="cl">	<span class="n">deb</span><span class="o">-</span><span class="n">src</span> <span class="n">http</span><span class="p">:</span><span class="o">//</span><span class="n">mirrors</span><span class="o">.</span><span class="n">aliyun</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">ubuntu</span><span class="o">/</span> <span class="n">bionic</span><span class="o">-</span><span class="n">backports</span> <span class="n">main</span> <span class="n">restricted</span> <span class="n">universe</span> <span class="n">multiverse</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p><strong>不要忘记运行 sudo apt-get update</strong></p>
<h2 id="为项目选择解释器">为项目选择解释器</h2>
<p>python 3 python3-pip</p>
<h2 id="更换pip3源">更换pip3源</h2>
<p>vi ~/.pip/pip.conf
豆瓣
<a class="link" href="https://pypi.doubanio.com/simple/"  target="_blank" rel="noopener"
    >https://pypi.doubanio.com/simple/</a>
阿里云 <br>
<a class="link" href="https://mirrors.aliyun.com/pypi/simple/"  target="_blank" rel="noopener"
    >https://mirrors.aliyun.com/pypi/simple/</a>
清华大学
<a class="link" href="https://pypi.tuna.tsinghua.edu.cn/simple/"  target="_blank" rel="noopener"
    >https://pypi.tuna.tsinghua.edu.cn/simple/</a>
<a class="link" href="https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"  target="_blank" rel="noopener"
    >https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/</a></p>
<p>临时使用
pip install some-package -i <a class="link" href="https://mirrors.aliyun.com/pypi/simple/"  target="_blank" rel="noopener"
    >https://mirrors.aliyun.com/pypi/simple/</a>
设为默认
pip install pip -U
pip config set global.index-url <a class="link" href="https://mirrors.aliyun.com/pypi/simple/"  target="_blank" rel="noopener"
    >https://mirrors.aliyun.com/pypi/simple/</a></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">[global]
</span></span><span class="line"><span class="cl">index-url = https://pypi.tuna.tsinghua.edu.cn/simple
</span></span><span class="line"><span class="cl">#阿里云 http://mirrors.aliyun.com/pypi/simple/
</span></span></code></pre></td></tr></table>
</div>
</div><p>修改此文件权限
sudo chmod -r 774 /code/readme.txt
附:
chmod [-可选参数][&lt;权限范围&gt;+/-/=&lt;权限设置&gt;] 文件/目录
[ u / g / o / a ] 为权限范围，其中
u：User，即文件或目录的拥有者
g：Group，即文件或目录的所属群组
o：Other，除了文件或目录拥有者和所属群组外，其他用户都属于这个范围
a：All，即全部用户
User : 7 = 111 表示具有 ” r , w , x” 权限
sudo chmod 774 *
” * ” 为通配符，表示对当前所在目录下的所有文件做权限修改操作
-c	当发生改变时报告处理信息
-f	错误信息不输出
-R	处理指定目录及子目录下的所有文件
-v	运行时显示详细处理信息
pycharm中<em>选择.virtualenvs/Django/bin/python</em></p>
<h2 id="新建用户以及切换用户">新建用户以及切换用户</h2>
<p><code>useradd username -m /passwd username /su - uername</code></p>
<h2 id="创建虚拟环境">创建虚拟环境</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">pip install --upgrade pip 
</span></span><span class="line"><span class="cl">pip install virtualenv 
</span></span><span class="line"><span class="cl">pip install virtualenvwrapper
</span></span><span class="line"><span class="cl">sudo vi .bashrc
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">VIRTUALENVWRAPPER_PYTHON</span><span class="o">=</span>/usr/bin/python3
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">WORKON_HOME</span><span class="o">=</span><span class="nv">$HOME</span>/.virtualenvs
</span></span><span class="line"><span class="cl"><span class="nb">source</span> ~/.local/bin/virtualenvwrapper.sh
</span></span><span class="line"><span class="cl">mkvirtualenv -p python3 Django1
</span></span><span class="line"><span class="cl">pip install -r requirement.txt
</span></span><span class="line"><span class="cl">pip freeze &gt; requirements.txt
</span></span></code></pre></td></tr></table>
</div>
</div><p>当安装出错时,可以尝试直接在requirements中更改版本</p>
<h2 id="数据分析环境">数据分析环境</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span><span class="lnt">8
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">下载miniconda
</span></span><span class="line"><span class="cl">wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.2.0-Linux-x86_64.sh<span class="o">)</span>
</span></span><span class="line"><span class="cl">bash Anaconda3-5.2.0-Linux-x86_64.sh
</span></span><span class="line"><span class="cl">清华源官网<span class="o">[](</span>https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/<span class="o">)</span>
</span></span><span class="line"><span class="cl">更换默认的python版本
</span></span><span class="line"><span class="cl">sudo gedit ~/.bashrc
</span></span><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">PATH</span><span class="o">=</span><span class="s2">&#34;/home/xupp/anaconda3/bin:</span><span class="nv">$PATH</span><span class="s2">&#34;</span>
</span></span><span class="line"><span class="cl"><span class="nb">source</span> ~/.bashrc
</span></span></code></pre></td></tr></table>
</div>
</div><p>添加中国镜像</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
</span></span><span class="line"><span class="cl">conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
</span></span><span class="line"><span class="cl">conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
</span></span><span class="line"><span class="cl">conda config --set show_channel_urls yes
</span></span></code></pre></td></tr></table>
</div>
</div><p>创建虚拟环境,注意-和- linux系统上不适用-p</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">conda create -n 自定义名称_py37 <span class="nv">python</span><span class="o">=</span>3.7
</span></span><span class="line"><span class="cl">conda remove --name <span class="nv">$your_env_name</span>  <span class="nv">$package_name</span>
</span></span><span class="line"><span class="cl">设置搜索时显示通道地址
</span></span><span class="line"><span class="cl">conda config --set show_channel_urls yes
</span></span><span class="line"><span class="cl"><span class="nb">source</span> activate your_env_name<span class="o">(</span>虚拟环境名称<span class="o">)</span>
</span></span><span class="line"><span class="cl"><span class="nb">source</span> deactivate <span class="c1">#关闭环境</span>
</span></span><span class="line"><span class="cl">用 conda 安装 scipy 
</span></span><span class="line"><span class="cl">cmd输入：conda install scipy
</span></span><span class="line"><span class="cl">用 conda 安装 pandas 
</span></span><span class="line"><span class="cl">输入：conda install pandas
</span></span><span class="line"><span class="cl">用 pip 安装 scikit-learn 
</span></span><span class="line"><span class="cl">输入：pip install scikit-learn
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="redis安装">redis安装</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl">wget http://download.redis.io/releases/redis-5.0.2.tar.gz
</span></span><span class="line"><span class="cl">tar -zxvf redis-5.0.2.tar.gz
</span></span><span class="line"><span class="cl">yum install gcc#可选
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> redis-5.0.2
</span></span><span class="line"><span class="cl">make <span class="nv">MALLOC</span><span class="o">=</span>libc
</span></span><span class="line"><span class="cl"><span class="nb">cd</span> src <span class="o">&amp;&amp;</span> make install
</span></span><span class="line"><span class="cl">redis-server -v或./redis-server -v
</span></span><span class="line"><span class="cl">进入etc目录cd /etc 然后创建目录mkdir redis
</span></span><span class="line"><span class="cl">进入redis目录cd redis然后复制文件cp /home/toutou/redis-5.0.2/redis.conf /etc/redis/6379.conf
</span></span><span class="line"><span class="cl">进入init.d目录/etc/init.d 复制一份脚本至/etc/init.d目录下cp /home/toutou/redis-5.0.2/utils/redis_init_script /etc/init.d/redis-toutou
</span></span><span class="line"><span class="cl">切换到init.d目录cd /etc/init.d
</span></span><span class="line"><span class="cl">chkconfig redis-toutou on
</span></span><span class="line"><span class="cl">注意：若提示service redis-toutou does not support chkconfig，则按下面方法操作:
</span></span><span class="line"><span class="cl">使用vim编辑redis-toutou文件，在第一行加入如下两行注释，保存退出
</span></span><span class="line"><span class="cl"><span class="c1"># chkconfig: 2345 90 10</span>
</span></span><span class="line"><span class="cl"><span class="c1"># description: Redis is a persistent key-value database</span>
</span></span><span class="line"><span class="cl">注释的意思是，redis服务必须在运行级2，3，4，5下被启动或关闭，启动的优先级是90，关闭的优先级是10。
</span></span><span class="line"><span class="cl">再次执行开机自启命令。chkconfig redis-toutou on
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">mac下安装redis
</span></span><span class="line"><span class="cl">brew install redis
</span></span><span class="line"><span class="cl">brew services start redis
</span></span><span class="line"><span class="cl">ps axu <span class="p">|</span> grep redis
</span></span><span class="line"><span class="cl">vi /usr/local/etc/redis.conf
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="设置默认的python和pip">设置默认的python和pip</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">echo alias python=python3 &gt;&gt; ~/.bashrc
</span></span><span class="line"><span class="cl">echo alias pip=pip3 &gt;&gt; ~/.bashrc
</span></span><span class="line"><span class="cl">source ~/.bashrc
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="安装gcc">安装gcc</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">#查看当前系统安装所有版本的gcc
</span></span><span class="line"><span class="cl">ls /usr/bin/gcc* -l 
</span></span><span class="line"><span class="cl">#如果gcc有5以下的版本，则不用在安装
</span></span><span class="line"><span class="cl">sudo apt-get  install gcc-4.8
</span></span><span class="line"><span class="cl">#更改gcc系统默认版本
</span></span><span class="line"><span class="cl">sudo rm /usr/bin/gcc #删除已有软连接
</span></span><span class="line"><span class="cl">sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc #创建指向gcc4.8的软连接
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="安装nodejs">安装nodejs</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="o">[</span>root@ding /<span class="o">]</span><span class="c1"># mkdir -p /usr/lib/nodejs/</span>
</span></span><span class="line"><span class="cl">解压安装包到 nodejs中
</span></span><span class="line"><span class="cl"><span class="o">[[</span>root@ding software<span class="o">]</span><span class="c1"># tar -xf node-v9.11.2-linux-x64.tar.xz -C /usr/lib/nodejs/</span>
</span></span><span class="line"><span class="cl">重名解压后文件名：
</span></span><span class="line"><span class="cl"><span class="o">[[</span>root@ding nodejs<span class="o">]</span><span class="c1"># mv node-v9.11.2-linux-x64/ node-v9.11.2</span>
</span></span><span class="line"><span class="cl">进入nodejs-v9.11.2
</span></span><span class="line"><span class="cl">./bin/node -v                               // 执行node命令 查看版本
</span></span><span class="line"><span class="cl">建立软连接,变为全局变量
</span></span><span class="line"><span class="cl"><span class="o">[</span>root@ding node-v9.11.2<span class="o">]</span><span class="c1"># rm -f /usr/local/bin/node</span>
</span></span><span class="line"><span class="cl"><span class="o">[</span>root@ding node-v9.11.2<span class="o">]</span><span class="c1"># ln -s /usr/lib/nodejs/node-v9.11.2/bin/node /usr/local/bin/</span>
</span></span><span class="line"><span class="cl"><span class="o">[</span>root@ding node-v9.11.2<span class="o">]</span><span class="c1"># node -v</span>
</span></span><span class="line"><span class="cl">安装cnpm
</span></span><span class="line"><span class="cl">npm install -g cnpm --registry<span class="o">=</span>https://registry.npm.taobao.org
</span></span><span class="line"><span class="cl">ln -s /usr/lib/nodejs/node-v9.11.2/bin/cnpm  /usr/local/bin/cnpm
</span></span><span class="line"><span class="cl">安装vue-cli
</span></span><span class="line"><span class="cl">cnpm install -g vue-cli
</span></span><span class="line"><span class="cl"> 继续建立软连接
</span></span><span class="line"><span class="cl"> sudo ln -s /usr/lib/nodejs/node-v9.11.2/bin/vue /usr/local/bin/vue
</span></span><span class="line"><span class="cl"> npm安装出错
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="yarn使用">yarn使用</h3>
<p>npm换源
npm config set registry <a class="link" href="https://registry.npm.taobao.org"  target="_blank" rel="noopener"
    >https://registry.npm.taobao.org</a></p>
<p>yarn换源
yarn config set registry <a class="link" href="https://registry.npm.taobao.org/"  target="_blank" rel="noopener"
    >https://registry.npm.taobao.org/</a></p>
<h2 id="离线安装python库">离线安装python库</h2>
<p>pip list
pip freeze &gt;requirements.txt
pip download -d packages -r requirements.txt
生成的packages里面包含各个.whl文件，将requirements.txt和packages一起拷贝到另外一台电脑
执行 pip install &ndash;no-index &ndash;find-links=packages -r requirements.txt</p>
<h2 id="win10相关">win10相关</h2>
<p>卸载之前的密钥: slmgr /upk，弹出窗口显示“成功地卸载了产品密钥”;【如果提示找不到密钥，不用管，直接跳到下一步】
安装产品密钥: slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX，弹出窗口显示“成功地安装了产品密钥”
设置密钥管理服务器: slmgr /skms kms.cangshui.net，弹出窗口提示：“密钥管理服务计算机名称成功地设置为kms.cangshui.net”，网络上非常多这种服务器
激活产品: slmgr /ato，弹出窗口提示：“成功地激活了产品”
查看激活过期时间: slmgr /xpr
查看激活信息: slmgr /dlv
刷新DNS缓存
ipconfig /flushdns</p>
<h2 id="clion环境安装">clion环境安装</h2>
<p>wsl方式 开启wsl2后再在powershell中
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
ubuntu中
sudo apt-get update
sudo apt-get install cmake gcc clang gdb build-essential
wget <a class="link" href="https://raw.githubusercontent.com/JetBrains/clion-wsl/master/ubuntu_setup_env.sh"  target="_blank" rel="noopener"
    >https://raw.githubusercontent.com/JetBrains/clion-wsl/master/ubuntu_setup_env.sh</a> &amp;&amp; bash ubuntu_setup_env.sh
使用此命令测试
ssh username@localhost -p2222</p>
<h2 id="迁移wsl2到d盘">迁移wsl2到D盘</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">wsl --export Ubuntu-18.04 d://wslubuntu//ubuntu-18.04.tar
</span></span><span class="line"><span class="cl">wsl --unregister Ubuntu-18.04
</span></span><span class="line"><span class="cl">wsl --import Ubuntu-18.04 d://wslubuntu d://wslubuntu//ubuntu-18.04.tar
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="xshell使用">xshell使用</h2>
<p>$rz 上传
$sz 文件名 下载</p>
<h2 id="前端服务添加证书">前端服务添加证书</h2>
<p>openssl req -new -key key.pem -out csr.pem -config D:\localhost.cnf
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem -config d:\localhost.cnf
http-server -S cert.pem</p>
<h2 id="小鹤双拼">小鹤双拼</h2>
<p>win + R，输入 regedit，打开注册表
找到 计算机\HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS 项
新建一个名为 UserDefinedDoublePinyinScheme0 的字符串值，值为 小鹤双拼<em>2</em>^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt
打开微软拼音输入法设置，把 小鹤双拼 设置为双拼的默认方案即可。</p>

</section>


    <footer class="article-footer">
    

    
    <section class="article-copyright">
        <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copyright" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <path d="M14.5 9a3.5 4 0 1 0 0 6" />
</svg>



        <span>Licensed under CC BY-NC-SA 4.0</span>
    </section>
    </footer>


    
</article>

    

    

     
    
        
    

    <footer class="site-footer">
    <section class="copyright">
        &copy; 
        
            2020 - 
        
        2023 梅鲁梅鲁梅鲁梅~
    </section>
    
    <section class="powerby">
        Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br />
        Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.13.0">Stack</a></b> designed by <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>
    </section>
</footer>


    
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    
    <div class="pswp__bg"></div>

    
    <div class="pswp__scroll-wrap">

        
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                
                
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"integrity="sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo="crossorigin="anonymous"
                defer
                >
            </script><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"integrity="sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU="crossorigin="anonymous"
                defer
                >
            </script><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css"crossorigin="anonymous"
            ><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css"crossorigin="anonymous"
            >

            </main>
    <aside class="sidebar right-sidebar sticky">
        
            
                
    <section class="widget archives">
        <div class="widget-icon">
            <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-hash" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <line x1="5" y1="9" x2="19" y2="9" />
  <line x1="5" y1="15" x2="19" y2="15" />
  <line x1="11" y1="4" x2="7" y2="20" />
  <line x1="17" y1="4" x2="13" y2="20" />
</svg>



        </div>
        <h2 class="widget-title section-title">Table of contents</h2>
        
        <div class="widget--toc">
            <nav id="TableOfContents">
  <ol>
    <li><a href="#深度学习环境搭建">深度学习环境搭建</a></li>
    <li><a href="#安装mysql">安装mysql</a></li>
    <li><a href="#ubuntu清华源">ubuntu清华源</a></li>
    <li><a href="#为项目选择解释器">为项目选择解释器</a></li>
    <li><a href="#更换pip3源">更换pip3源</a></li>
    <li><a href="#新建用户以及切换用户">新建用户以及切换用户</a></li>
    <li><a href="#创建虚拟环境">创建虚拟环境</a></li>
    <li><a href="#数据分析环境">数据分析环境</a></li>
    <li><a href="#redis安装">redis安装</a></li>
    <li><a href="#设置默认的python和pip">设置默认的python和pip</a></li>
    <li><a href="#安装gcc">安装gcc</a></li>
    <li><a href="#安装nodejs">安装nodejs</a>
      <ol>
        <li><a href="#yarn使用">yarn使用</a></li>
      </ol>
    </li>
    <li><a href="#离线安装python库">离线安装python库</a></li>
    <li><a href="#win10相关">win10相关</a></li>
    <li><a href="#clion环境安装">clion环境安装</a></li>
    <li><a href="#迁移wsl2到d盘">迁移wsl2到D盘</a></li>
    <li><a href="#xshell使用">xshell使用</a></li>
    <li><a href="#前端服务添加证书">前端服务添加证书</a></li>
    <li><a href="#小鹤双拼">小鹤双拼</a></li>
  </ol>
</nav>
        </div>
    </section>

            
        
    </aside>


        </div>
        <script 
                src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js"integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z&#43;KMkF24hUW8WePSA9HM="crossorigin="anonymous"
                
                >
            </script><script type="text/javascript" src="/ts/main.js" defer></script>
<script>
    (function () {
        const customFont = document.createElement('link');
        customFont.href = "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap";

        customFont.type = "text/css";
        customFont.rel = "stylesheet";

        document.head.appendChild(customFont);
    }());
</script>

    </body>
</html>
